package com.azier.kapacitor.script.method;

import com.azier.kapacitor.script.arg.OriginalArg;
import com.azier.kapacitor.script.arg.SingleQuotesArg;

import java.util.ArrayList;

/**
* 1 * @Author: luoj
* 2 * @Date: 2019/11/8 11:27
* 3
*/
public class Field extends AbstractMethod {
    private static final String name = "field";
    /**
    Delete a field.
    **/
    /**
    删除一个字段。
    **/
    public Field(String name) {
        super(new ArrayList<>(), name);
        //
        this.args.add(new SingleQuotesArg(name));
    }

    public Field(String name,Object arg) {
        super(new ArrayList<>(), name);
        //
        this.args.add(new SingleQuotesArg(name));
        this.args.add(new OriginalArg(arg));
    }
}
